package com.training.java.module2;

/**
 * Created with IntelliJ IDEA.
 * User: Vladislav
 * Date: 24.10.13
 * Time: 17:07
 * To change this template use File | Settings | File Templates.
 */
public class User {
    //private String path;
    private String userName;
    private String Password;
    public boolean isCorrectUser(String login, String password) {
        if((login.equals(userName))&&(Password.equals(password))) {
            return true;
        }
        return false;
    }
    public User(String name,String password) {
        userName = name;
        Password = password;
    }
}
